package p3;

import java.util.Scanner;

/**
 * @author krystal
 * @date 2022/11/9 19:34
 */
public class Demo9 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int sum = 0;
        int num = 0;
        while (scanner.hasNextInt()){
            int tmp=scanner.nextInt();
            sum += tmp;
            num++;
        }
        System.out.println("sum="+sum);
        System.out.println("avg="+sum/num);
        scanner.close();
    }
}
